package com.clock.domain.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel("新的关卡")
public class NewLevel {

    @NotNull
    private int id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "教程")
    private String tutorial;

    @ApiModelProperty(value = "示例")
    private String example;

    @ApiModelProperty(value = "题目")
    private String topic;

    @ApiModelProperty(value = "参考答案")
    private String rfanswer;

    @ApiModelProperty(value = "用户创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date levelCreateTime;

    @ApiModelProperty(value =  "类别 ")
    private String type;


}
